package com.yinNuo.collectWool.controller;

import com.yinNuo.collectWool.core.annotion.NoAuthAccess;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: yinNuo
 * create at: 2021/12/13 下午8:15
 * @description: 请求路径错误返回页面
 */
@Controller
public class errorIndexController {

    //请求不到资源时 跳转到首页
    @RequestMapping(value = "/error400")
    @NoAuthAccess
    public String error400Page() {
        return "index";
    }
    @RequestMapping(value = "/error401")
    @NoAuthAccess
    public String error401Page() {
        return "index";
    }
    @RequestMapping(value = "/error404")
    @NoAuthAccess
    public String error404Page() {
        return "index";
    }
    @RequestMapping(value = "/error500")
    @NoAuthAccess
    public String error500Page() {
        return "index";
    }

}
